# data 2019-4-23 9:32

Pod::Spec.new do |s|

  s.name                = "commonPay"
  s.version             = "1.1.0"
  s.summary             = "A short description of commonPay."
  s.homepage            = "http://192.168.1.11:9000/svn/segi_c/ios/commonPay"
  s.license             = "MIT"
  s.author              = { "山刘" => "liushan@segimail.com" }
  # s.source              = { :svn => "http://192.168.1.11:9000/svn/segi_c/ios/commonPay", :tag => "#{s.version}" }
  s.source       = { :git => "http://gitlab.uhomecp.com:9200/jingjie/commonpay.git", :tag => "#{s.version}" }
  s.static_framework    = true
  s.requires_arc        = true
  s.platform            = :ios, "8.0"

  # 四格支付
  s.subspec 'SEGPay' do|spay|
    spay.source_files        = "commonPay/Class/SEGPay/**/*.{h,m}" 
    spay.public_header_files = "commonPay/Class/SEGPay/**/*.h"
    spay.prefix_header_file = "commonPay/Class/SEGPay/SEGPayPrefixHeader.pch"
    
    spay.dependency "WechatOpenSDK"

    spay.dependency "Commom/SEGServerManager"
    spay.dependency "Commom/SEGColor"
    spay.dependency "Commom/SEGLayoutMacro"
    spay.dependency "Commom/ThirdNibs/SEGonry"
    spay.dependency "Commom/SEGTools/YYBase"
    spay.dependency "Commom/ThirdNibs/SDWebImage"
    spay.dependency "SEGViewModel/commonPay"

    # spay.dependency "Commom/CommonViews"
    # spay.dependency "Commom/SEGBussinessConst"
    # spay.dependency "Commom/SEGInterfaceManager/SEGAnalyseBehaviorSource"
    spay.dependency "AlipaySDK-iOS"
    spay.dependency "SEGPlatform"
  end
  
  #综合支付
  s.subspec 'UMSPosPayOnly' do|pospay|
    pospay.source_files        = "commonPay/Class/UMSPosPayOnly/**/*.{h,m}"
    pospay.public_header_files = "commonPay/Class/UMSPosPayOnly/**/*.h"
    pospay.dependency "WechatOpenSDK"
    pospay.resource = 'commonPay/Class/UMSPosPayOnly/*.bundle'
    pospay.vendored_libraries = 'commonPay/Class/UMSPosPayOnly/*.a'
  end
  
  #云闪付
  s.subspec 'UPPaymentControl' do|uppay|
    uppay.source_files        = "commonPay/Class/UPPaymentControl/**/*.{h,m}"
    uppay.public_header_files = "commonPay/Class/UPPaymentControl/**/*.h"
    uppay.vendored_libraries = 'commonPay/Class/UPPaymentControl/*.a'

  end
  
  #银联聚合 applepay
  s.subspec 'UPPayPlugin' do|applepay|
    applepay.source_files        = "commonPay/Class/UPPayPlugin/**/*.{h,m}"
    applepay.public_header_files = "commonPay/Class/UPPayPlugin/**/*.h"
    applepay.vendored_libraries = 'commonPay/Class/UPPayPlugin/*.a'
    applepay.frameworks = 'CFNetwork', 'PassKit', 'SystemConfiguration' # 系统库(.framework)
  end
  #工行支付
  s.subspec 'ICBCPay' do|icbcpay|
    icbcpay.source_files        = "commonPay/Class/ICBCPay/**/*.{h,m}"
    icbcpay.public_header_files = "commonPay/Class/ICBCPay/**/*.h"
    icbcpay.vendored_frameworks = 'commonPay/Class/ICBCPay/ICBCPaySDK.framework'  #  源文件
    icbcpay.resource = 'commonPay/Class/ICBCPay/ICBCPaySDK.bundle'
    icbcpay.frameworks = 'WebKit','Security','QuartzCore', 'CoreText','CoreMotion','CFNetwork','SystemConfiguration', 'Security', 'CoreGraphics', 'CoreTelephony' # 系统库(.framework)
    icbcpay.dependency "AlipaySDK-iOS"
    icbcpay.dependency "AFNetworking", '4.0.1'
    
  end

  s.dependency "CommonMediator"
end
